package com.hspedu.codeblock.abstractExercise;

public class CommonEmployee extends Employee{

    private double bonus;
    public CommonEmployee(String name, String id, String salary) {
        super(name, id, salary);
    }

    public CommonEmployee setBonus(double bonus) {
        this.bonus = bonus;
        return this;
    }

    public double getBonus() {
        return bonus;
    }
    @Override
    public void work() {
        System.out.println("普通员工" + getName() + "工作中" + getBonus());
    }
}
